﻿using System;
using System.ComponentModel.Composition;
using ASPItalia.ModelVirtualCasting.Common;

namespace ASPItalia.ModelVirtualCasting.Parts
{
    internal class CountryRepositoryPart : IRepositoryPart<ICountryRepository>
    {
        public CountryRepositoryPart()
        {
        }

        [Import(
            "CountryRepository",
            typeof(ICountryRepository),
            RequiredCreationPolicy = CreationPolicy.NonShared,
            AllowDefault = false,
            AllowRecomposition = false)]
        public Lazy<ICountryRepository, IRepositoryMetadata> Repository { get; set; }
    }
}
